package com.fsai.cms.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fsai.cms.base.TreeEntity;

/**
 * 栏目设置对象 cms_cate
 * 
 * @author jaffe
 * @date 2021-03-12
 */
public class CmsCate extends TreeEntity {
	private static final long serialVersionUID = 1L;

	/** 主键ID */
	private Long cateId;

	/** 所属站点 */
	private Long siteId;

	/** 栏目名称 */
	private String cateTitle;

	/** 栏目代码 */
	private String cateCode;

	/** 栏目属性 */
	private String cateProp;

	/** 栏目类型 */
	private String cateType;

	/** 所属处室 */
	private Long orgId;

	/** 访问地址 */
	private String visitUrl;

	/** 推荐显示数量 */
	private Integer recomPageCount;

	/** 每页显示数量 */
	private Integer showPageCount;

	/** 关键词 */
	private String keyWord;

	/** 栏目描述 */
	private String cateDesc;

	/** 排序 */
	private Integer sortIndex;

	/** 启用状态（0启用 1关闭） */
	private String status;

	//子栏目
	private List<CmsCate> children;

	public List<CmsCate> getChildren() {
		return children;
	}

	public void setChildren(List<CmsCate> children) {
		this.children = children;
	}

	public void setCateId(Long cateId) {
		this.cateId = cateId;
	}

	public Long getCateId() {
		return cateId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setCateTitle(String cateTitle) {
		this.cateTitle = cateTitle;
	}

	public String getCateTitle() {
		return cateTitle;
	}

	public void setCateCode(String cateCode) {
		this.cateCode = cateCode;
	}

	public String getCateCode() {
		return cateCode;
	}

	public void setCateProp(String cateProp) {
		this.cateProp = cateProp;
	}

	public String getCateProp() {
		return cateProp;
	}

	public void setCateType(String cateType) {
		this.cateType = cateType;
	}

	public String getCateType() {
		return cateType;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setVisitUrl(String visitUrl) {
		this.visitUrl = visitUrl;
	}

	public String getVisitUrl() {
		return visitUrl;
	}

	public void setRecomPageCount(Integer recomPageCount) {
		this.recomPageCount = recomPageCount;
	}

	public Integer getRecomPageCount() {
		return recomPageCount;
	}

	public void setShowPageCount(Integer showPageCount) {
		this.showPageCount = showPageCount;
	}

	public Integer getShowPageCount() {
		return showPageCount;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setCateDesc(String cateDesc) {
		this.cateDesc = cateDesc;
	}

	public String getCateDesc() {
		return cateDesc;
	}

	public void setSortIndex(Integer sortIndex) {
		this.sortIndex = sortIndex;
	}

	public Integer getSortIndex() {
		return sortIndex;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("cateId", getCateId())
				.append("siteId", getSiteId()).append("cateTitle", getCateTitle()).append("cateCode", getCateCode())
				.append("parentId", getParentId()).append("cateProp", getCateProp()).append("cateType", getCateType())
				.append("orgId", getOrgId()).append("visitUrl", getVisitUrl())
				.append("recomPageCount", getRecomPageCount()).append("showPageCount", getShowPageCount())
				.append("keyWord", getKeyWord()).append("cateDesc", getCateDesc()).append("sortIndex", getSortIndex())
				.append("status", getStatus()).append("createBy", getCreateBy()).append("createTime", getCreateTime())
				.append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark())
				.toString();
	}
}
